//
//  SEExamineReserveProjectCvCell.swift
//  SmartEyeForPatient
//
//  Created by qdsg on 2021/4/8.
//

import UIKit

class SEExamineReserveProjectCvCell: UICollectionViewCell {

    static let className = "SEExamineReserveProjectCvCell"
    static let reuseId = className

    @IBOutlet weak var bgImgView: UIImageView!
    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var feeLabel: UILabel!

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    func updateCell(itemModel: SEExamineReserveCheckItem) {
        titleLabel.text = itemModel.checkItemValue
        feeLabel.text = String.init(format: "%.2lf%@", itemModel.checkFee, "元")
        bgImgView.image = itemModel.isSelected
            ? Asset.examineReserveProjectIconSelected.image
            : Asset.examineReserveProjectIconNormal.image
    }
}
